package com.ruoyi.service.service;

import com.ruoyi.service.domain.ServiceMycart;

import java.util.List;

/**
 * 购物车Service接口
 * 
 * @author ZDL
 * @date 2024-12-20
 */
public interface IServiceMycartService 
{
    /**
     * 查询购物车
     * 
     * @param mycartId 购物车主键
     * @return 购物车
     */
    public ServiceMycart selectServiceMycartByMycartId(Long mycartId);
    public List<ServiceMycart> selectServiceMycartByMycartUserId(Long userId);

    /**
     * 查询购物车列表
     * 
     * @param serviceMycart 购物车
     * @return 购物车集合
     */
    public List<ServiceMycart> selectServiceMycartList(ServiceMycart serviceMycart);

    /**
     * 新增购物车
     * 
     * @param serviceMycart 购物车
     * @return 结果
     */
    public int insertServiceMycart(ServiceMycart serviceMycart);

    /**
     * 修改购物车
     * 
     * @param serviceMycart 购物车
     * @return 结果
     */
    public int updateServiceMycart(ServiceMycart serviceMycart);

    /**
     * 批量删除购物车
     * 
     * @param mycartIds 需要删除的购物车主键集合
     * @return 结果
     */
    public int deleteServiceMycartByMycartIds(Long[] mycartIds);

    /**
     * 删除购物车信息
     * 
     * @param mycartId 购物车主键
     * @return 结果
     */
    public int deleteServiceMycartByMycartId(Long mycartId);
}
